<%@page import="wap.rockvilletech.portal.SystemProperty"%>
<%@page import="wap.rockvilletech.xms.*"%>
<%@ page import="org.apache.log4j.Logger" %>

<% final Logger log = Logger.getLogger("JSP.SENDSMS");%>
<%
	if(request.getParameter("msisdn") != null) {
		String msisdn = request.getParameter("msisdn");
		String msg = request.getParameter("msg");
		String sc = request.getParameter("sc");
		String resp = SendXMSManager.sendXMS(sc, msg, msisdn, SystemProperty.getProperty("smpp_provider"));
	}
%>

<%@ include file="includes/header.jspf"%>
	

<div style="width: 100%; background-color: #F2F2F2;" align="center">    
	<form method="post" action="sendsms.jsp" style="padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px; ">
	<table cellpadding="0" cellspacing="0" border="0" align="center"><tr><td>
		<label>Shortcode</label>
		<select name="sc">
			<option value="6211">6211</option>
			<option value="6212">6212</option>
			<option value="6213">6213</option>
			<option value="6214">6214</option>
			<option value="6215">6215</option>
			<option value="6216">6216</option>
		</select>
		<br/>
		<label>MSISDN</label>
	    <input type="text" style="color: #333333; width: 114px; border: none; margin:5px 0px 0px 0px; vertical-align: middle;  border: 1px solid black; " name="msisdn" maxlength="12" />
	    <br/>
	    <label>Text</label>
	    <input type="text" style="color: #333333; width: 114px; border: none; margin:5px 0px 0px 0px; vertical-align: middle;  border: 1px solid black; " name="msg" maxlength="140" />
	    <br/>
		<input type="submit" value=" Send " alt="Submit" />
	</td></tr></table>
	</form>
</div>


<%@ include file="includes/footer.jspf"%>